;(function(){
    const template=`<div class="table-responsive">
    <table class="table table-striped">
      <thead>
        <tr>
          <th>id</th>
          <th>name</th>
          <th>age</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <app-items v-for="(emp,index) in emps" :key="emp.id" :emp="emp" :deleteEmp="deleteEmp" :index="index"></app-items>
      </tbody>
    </table>
  </div>`
    window.HomeList={
        template:template,
        //子组件以对象的方式接收父组件的属性
        props:{
          emps:Array,
          deleteEmp:Function,
        },
        components:{
          "app-items":Items,
        }
    }
})()